Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHS-5880: Changing <h3> tags in grouping titles to <h2> #1666

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

cienvaras
Copy link
Collaborator

@cienvaras cienvaras commented Oct 22, 2024

READY FOR REVIEW

Summary

  • Update views templates to use h2 instead of h3 as the default heading level for the grouping title (it's more common to need h2 in HSDP sites)

Need Review By (Date)

10/23

Urgency

medium

Steps to Test

  • Log in into the Tugboat Colorful site (you can use any other site that has a view with grouped results, the fix is independent of the theme)

  • Visit the Publications default views page. Scroll down to the "Link URL or Doc Publication List" view.

  • Confirm that the grouping titles (the years) are being displayed using a <h2> title

    Screenshot 2024-10-22 at 6 53 04 PM
  • Edit the view. In the "Fields" section, click on the "Content: Publication Year [hidden]" item. Search for the "Rewrite Results" section, check the "Override the output of this field with custom text" option and add the following text:

    <h3>{{ field_hs_publication_year }}</h3>
    
    Screenshot 2024-10-22 at 6 59 41 PM
  • Click on "Apply (This display)" at the bottom of the dialog and then save the view.

  • Visit the Publications default views page again and confirm that the grouping title is now an <h3>.

PR Checklist


@cienvaras cienvaras self-assigned this Oct 22, 2024
@ahughes3 ahughes3 temporarily deployed to Tugboat October 22, 2024 23:58 Destroyed
@cienvaras cienvaras assigned ahughes3 and unassigned cienvaras Oct 23, 2024
@cienvaras cienvaras requested a review from ahughes3 October 23, 2024 01:04
@cienvaras
Copy link
Collaborator Author

@ahughes3 Ready for you to review.

@ahughes3 ahughes3 requested a review from joegl October 23, 2024 13:57
@ahughes3 ahughes3 assigned joegl and unassigned ahughes3 Oct 23, 2024
@joegl joegl merged commit 36cbef7 into 11.4.1-release Oct 23, 2024
17 checks passed
@joegl joegl deleted the shs-5880--grouping-titles-h3-to-h2 branch October 23, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants